{% spaceless %}
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title>Treno: {{ train.name }}</title>
		{% ifnotequal version 'minimal' %}
			<link rel="icon" type="image/png" href="/favicon.ico" />
			<link rel="stylesheet" type="text/css" href="style.css" />
		{% endifnotequal %}
		<meta name="viewport" content="width=device-width" />
	</head>
	<body>
		{{ train.info|linebreaks }}
		<table>
			<tr>
				<th>Stazione</th>
				<th>Ritardo</th>
				<th>Ora</th>
				<th>Binario</th>
				<th>Ora<br/>(da orario)</th>
				<th>Binario<br/>(da orario)</th>
			</tr>
			{% for stop in train.stops %}
				<tr class="{% cycle odd,even %}{% if not stop.inTheFuture %} delay{{ stop.punctuality }}{% endif %}">
					<td>{{ stop.name}}</td>
					<td>{% if not stop.inTheFuture %}{{ stop.delay|default_if_none:"" }}{% endif %}</td>
					<td>{{ stop.actualTime|time:"H:i" }}</td>
					<td>{{ stop.actualPlatform|default_if_none:"" }}</td>
					<td>{{ stop.scheduledTime|time:"H:i" }}</td>
					<td>{{ stop.scheduledPlatform|default_if_none:"" }}</td>
				</tr>
			{% endfor %}
		</table>
	</body>
</html>
{% endspaceless %}
